Insert Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

This method must be overridden by the derived class to insert a new item at the given index.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public abstract void Insert(
	int index,
	T item
)
Visual Basic (Declaration)
Public MustOverride Sub Insert ( _
	index As Integer, _
	item As T _
)
Visual C++
public:
virtual void Insert (
	int index, 
	T item
) abstract

Parameters

index
Int32
The index in the list to insert the item at. After the insertion, the inserted item is located at this index. The first item in the list has index 0.
item
T
The item to insert at the given index.

Exceptions

ExceptionCondition
System..::ArgumentOutOfRangeExceptionindex is less than zero or greater than Count.

See Also